<template>
  <el-container style="min-height: 100vh; border: 1px solid #eee">
    <Aside>
    </Aside>
    <!-- background-color:#ebf4ff; -->
    <el-container style="position: relative;">
      <Header>
      </Header>
      <div class="welcomeFont">
        <span v-show="ControlSpan"> 欢迎使用宿舍管理系统！ </span>
      </div>
      <div class="mainBody">
        <router-view />
      </div>
      
    </el-container>
  </el-container>

</template>
<script>
import Header from "../components/frame/Header";
import Aside from "../components/frame/Aside";
import Student from "../components/adminModule/Student.vue";
 
export default {
  name: "HomeView",
  components: {
    Aside,
    Header,
    Student,
  },
  data() {
    return {
      ControlSpan:true
    };
  },
  methods: {

    
  },
  mounted(){
      // console.log("HomeView被挂载了");
      this.$bus.$on('ControlHomeSpan',(data)=>{
				this.ControlSpan = data
			})
  },
  beforeDestroy(){
    // console.log("HomeView即将死亡");
  }
};
</script>

<style scoped>
a{
  color: white;
}
.test{
  color: orange;
}
.welcomeFont{
  position: absolute;
  top: 100px;
  left: 40%;
}
.welcomeFont>span{
  font-size: 24px;
}
</style>
